#ifndef __PLATFORM_UTILS_JNI__
#define __PLATFORM_UTILS_JNI__


#include "network/HttpClient.h"
#include "network/RestAPI.h"
#include <android/log.h>
#include <unistd.h>
#include <assert.h>
#include <string>
#include <jni.h>

 
#ifndef NELEM
#define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0])))  
#endif  
 

#define  LOG_TAG    "PlatformUtilsJni"
#define  LOGD(...)  __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)


extern "C"
{
	JNIEXPORT void JNICALL Java_com_example_ndktest_PlatformUtils_Post(JNIEnv *env,jobject obj,jstring ip_str,jstring cmd_str,jstring data_str,jint type_int,jint timeout_int,jstring callback_str);
	JNIEXPORT void JNICALL Java_com_example_ndktest_PlatformUtils_Get(JNIEnv *env,jobject obj,jstring ip_str,jstring cmd_str,jstring data_str,jint type_int,jint timeout_int,jstring callback_str,jstring control_str);
	//JNIEXPORT void JNICALL Java_com_example_ndktest_PlatformUtils_ReceiveResponse(JNIEnv *env,jobject obj);
}
#endif
